#include <QtGui/QApplication>
#include "ErrorMessage.h"
#include "mainwindow.h"
#include "atlbase.h"

int main(int argc, char *argv[])
{
	//try
	//{
		QApplication a(argc, argv);
		MainWindow w;
		w.show();
		return a.exec();
	//}
	//catch(...) // use EXCEPTION_EXECUTE_HANDLER (value "1") and control is passed to the exception handler
	//{
		//DWORD  errorCode = GetExceptionCode();

		//if (errorCode == EXCEPTION_STACK_OVERFLOW)
		//{
		//	ERROR_MESSAGE("Stack overflow. The programm will be ended.");
		//}
	//}
}
